package com.example.demo.dto;

import com.example.demo.eunm.Decimal.Constants;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Pattern;
import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class StudentDTO {

    private String studentNo;

    @Pattern(regexp = "^[A-Za-z]\\w+")
    private String name;

    @Max(value = 120L, message = Constants.ZERO)
    @Min(0L)
    private int age;

    private String classNo;
}
